﻿//***********************************************************************
// Assembly         : IGolovkine.AoA.Tcp.Channels.Http
// Author           : Ilia
// Created          : 06-11-2011
//
// Last Modified By : Ilia
// Last Modified On : 01-04-2010
// Description      : 
//
// Copyright        : (c) Microsoft. All rights reserved.
//***********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IGolovkine.AoA.Compression
{
    public class NoCompression : ICompressionAlgorithm
    {
        public const string Name = "None";

        string ICompressionAlgorithm.Name
        {
            get { return NoCompression.Name; }
        }

        public byte[] Compress(byte[] uncompressedBuffer)
        {
            return uncompressedBuffer;
        }

        public byte[] Decompress(byte[] compressedBuffer)
        {
            return compressedBuffer;
        }
    }
}
